﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PreviousTrips.aspx.cs" Inherits="AiRiZu.User.PreviousTrips" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
	爱日租—全球最时尚、最具先锋概念的房屋日租、短租服务网站！
</title>
<meta content="爱日租,日租,短租,租房,家庭公寓,自助公寓,家庭旅馆,旅游" name="keywords"/>
<meta content="爱日租是国内首家专注房屋短期租赁的信息发布和在线交易的网站，为房主和租户搭建起最值得信赖的沟通和交易平台" name="description"/>

<<link rel="stylesheet" href="css/css.css" />
<link rel="stylesheet" href="css/howitworks.css" />
<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/pixie.css" />
<link rel="stylesheet" href="css/dashboard.css" />
<link rel="stylesheet" href="css/search.css" />

<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/application6.js"></script>
<script type="text/javascript" src="js/home.js"></script>
<script type="text/javascript" src="js/translate.js"></script>
<script type="text/javascript" src="js/s_code.js?vid=1"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="layout" content="main"/>


<script type="text/javascript">

//    $(document).ready(function() {
//        opts = {};
//        AirbnbHomePage.init(opts);
//    });

    function addEventHandler(target, type, func) {
        if (target.addEventListener)
            target.addEventListener(type, func, false);
        else if (target.attachEvent)
            target.attachEvent("on" + type, func);
        else target["on" + type] = func;
    }
    addEventHandler(document, 'scroll', function() {
        document.getElementById('list_loading').style.top = $('body').scrollTop() + 'px';
    });

    function shiftLanguage(lang, country) {
        $.ajax({
            type: "POST",
            url: "/ajax/versionInternationalize",
            data: 'lang=' + lang + '&country=' + country,
            success: function(msg) {
                if (msg == 'success') {
                    window.location.reload(true);
                }
            }
        });
    }

    $(document).bind('click', function(event) {
        var url = event.target.href;
        if (event.target.parentNode.href) {
            url = event.target.parentNode.href;
        }
        if (url && url.indexOf('http://') == 0) {
            if (url.indexOf("?") != -1 && (url.indexOf("/city") != -1 || url.indexOf("/list") != -1 || url.indexOf("/show") != -1)) {
                post_to_url(url);
                event.preventDefault();
                event.stopPropagation();
            }
        }

    }, true);

    function post_to_url(url) {
        var flag = false; // 目录到/room/show页面时是弹出新窗口，flag = false 不弹出，true是弹出
        if (url.indexOf("/room/show") != -1 && url.indexOf("?src=list") != -1) {
            flag = true;
        }

        var form = document.createElement("form");
        var baseUrl = url.substring(0, url.indexOf("?"));
        var params = url.substring(url.indexOf("?") + 1, url.length);
        params = decodeURIComponent(params);
        params = params.replace("+", " ");
        var s = params.split("&");
        form.setAttribute("method", "post");
        form.setAttribute("action", baseUrl);
        for (var i = 0; i < s.length; i++) {
            var hiddenField = document.createElement("input");
            hiddenField.setAttribute("type", "hidden");
            hiddenField.setAttribute("name", s[i].split("=")[0].replace('locationSearch', 'location'));
            hiddenField.setAttribute("value", s[i].split("=")[1]);
            form.appendChild(hiddenField);
        }
        $('body').append(form);
        if (flag) {
            form.target = "_blank"; // /room/show 新窗口弹出
        }

        form.submit();
    }
</script>

<!--google analytics-->
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-22185191-1']);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

</script>

</head>
<body>
<form id="Form1" action="PreviousTrips.aspx" runat="server">
	<div name="waitingDiv" id="waitingDiv" style="display: none;">
		<div id="list_loading" name="list_loading">
			<div id="list_loading_wrapper" class="rounded_more">
				<img src="/images/home_spinner.gif"
					style="display: block; float: left; padding: 0 12px 0 0;" />页面载入中...
			</div>
		</div>
	</div></div>
	<div class="header">
	    <a class="logo" title="爱日租" href="../default.aspx"></a>
	    <div class="top_bar">
		    <ul class="nav">
			
		        <li>
		            <span class="SayHi"><%=Session["aliance"] != null? "嗨! " + Session["aliance"].ToString() : ""%></span>
		        </li>

				<li>
				    <a href="DashBoard.aspx">用户中心</a>
				</li>
				    <li>
					    <strong>
						    <a href="/message/inbox?offset=0" class="message">
							    <span id="unReadMessages"></span>
						    </a>
					    </strong>
					</li>
					
					<li class="rounded">
					    <asp:HyperLink ID="HyperLink1" runat="server" ></asp:HyperLink>
						<a href="javascript:void(0)" onclick="AddFavorite(window.location,document.title)">收藏</a>
							<%--收藏--%>
						<%--<span class="star" title="收藏" id="userFavorites"></span></a>--%>
					</li>
				<script type="text/javascript" language="javascript">
				    function AddFavorite(sURL, sTitle) {
				        try {
				            window.external.addFavorite(sURL, sTitle);
				        }
				        catch (e) {
				            try {
				                window.sidebar.addPanel(sTitle, sURL, "");
				            }
				            catch (e) {
				                alert("加入收藏失败，请使用Ctrl+D进行添加");
				            }
				        }
				    }
                    
                </script>

				<li>
				        <asp:LinkButton id="logoutButton" runat="server" onclick="logoutButton_Click">退出</asp:LinkButton>
				    
				</li>
				
			
				<li style="display:none"><span class="ChoLanguage selected">
				<a href="#">简体中文</a></span></li>
                <li style="display:none"><span class="EngLanguage">
       	        <a href="#">English</a></span></li>
	     
			
			
		</ul>
		<a href="../SendRoom.aspx" class="btn list_your_space">
			<span>发布房间</span>		</a>		</div>
		<p class="customer_hot_line"><span>400-696-6656</span><a href="#">媒体报道</a></p>
	</div>
	
<div id="command_center">
 <!--
	menu =>  dashboard,inbox,rooms,trips,account,recommend
 -->

<ul id="nav">
	<li id="dashboardmenu"><a href="dashboard.aspx">我爱日租</a></li>
	<li id="inboxmenu"><a href="Index.aspx">收件箱</a></li>
	<li id="roomsmenu"><a href="MyRooms.aspx">我的房间</a></li>
	<li id="tripsmenu"><a href="Trips.aspx">出行计划</a></li>
	<li id="accountmenu"><a href="Warnset.aspx">账户信息</a></li>
	<li id="commentsmenu"><a href="Comments.aspx">评价推荐</a></li>
	<li id="vouchersmenu"><a href="Vouchersinvite.aspx">赢取租币</a></li>
</ul>

	




<ul class="subnav">
	<li id="trips_submenu"><a href="Trips.aspx">当前行程</a></li>
    <li id="uncomingtrips_submenu"><a href="UncomingTrips.aspx">计划行程</a></li>
    <li id="previoustrips_submenu"><a href="PreviousTrips.aspx">以前行程</a></li>
    <li style="display:none"><a href="#none">收藏房屋</a></li>
</ul>








<script type="text/javascript">

    var item = document.getElementById('tripsmenu');
    if (item) {
        item.className = 'active';
    }
    item = document.getElementById('previoustrips_submenu');
    if (item) {
        item.className = 'active';
    }

</script>






<div id="thetrips" class="box">
<div class="top"></div>
<div class="middle">

    
                    <!-- new begin -->
				      <table border="0" cellpadding="0" cellspacing="0" class="trips_list">
				      	<thead>
				        	<tr>
				              <th width="130">订单状态</th>
				              <th width="340" style="text-align:left; padding-left:20px;">预订信息</th>
				              <th width="120">房租费用</th>
				              <th width="200">房东信息</th>
				              <th width="110">操作</th>
				            </tr>
				        </thead>
				        <tbody>
				          
				        </tbody>
				      </table>
                    <!-- new end -->
                    
                    <%=PreviousTripsString %>
                    <div id="results_footer" style="clear:both;">
							<div id="results_pagination">
								<div class="pagination">
									
								</div>
							</div>
						</div>
</div>
<div class="bottom"></div>
</div>
</div>



	<!-- footer -->
	
<div id="footer">
  <p class="TxtEn">&copy; Copyright 2011 <a href="#">airizu.com 爱日租 版权所有</a>&nbsp;&nbsp;京ICP证110553 号
	 <br/>
	 <br/><img src="images/alipay.gif" width="123" height="40">&nbsp;&nbsp;
    <img src="images/tenpay.gif" width="96" height="40">&nbsp;&nbsp;    <img src="images/315.gif" width="89" height="40">    <img src="images/bluelogoair.gif"/></p>
</div>
</form>
</body>

</html>
